package me.lovetcat.common.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @author acat on 2017-01-16 13:52
 */
public class ValidDataUtil {

    public static final boolean validMobile(String mobile){
        Pattern p = Pattern.compile("^[1][3,4,5,7,8][0-9]{9}$"); // 验证手机号
        Matcher m = p.matcher(mobile);
        return m.matches();
    }

}
